home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2003 November / PCWK1103B.iso / CINEMA 4D CE 6 / Libs / gui_defines.cox < prev   
Text File  |  2001-01-20  |  23KB  |  823 lines

  1. enum
  2. {
  3.     GUI_H_
  4. };
  5.  
  6. enum
  7. {
  8.     WIN_WINDOW    = 1,
  9.     WIN_DLG            = 2,
  10.     WIN_POPUP        = 3
  11. };
  12.  
  13. enum
  14. {
  15.     FONT_DEFAULT        = 0,
  16.     FONT_STANDARD        = 1,
  17.     FONT_BOLD                = 2,
  18.     FONT_MONOSPACED    = 3
  19. };
  20.  
  21. // COFFEE qualifiers
  22. enum
  23. {
  24.     QSHIFT = 1,
  25.     QCTRL  = 2,
  26.     QALT   = 4,
  27.     QALT2  = 8,
  28.     QALT3  = 16,
  29.     QQUAL_
  30.  
  31. };
  32.  
  33. // COFFEE keys
  34. enum
  35. {
  36.     KEY_UP                = 0x8000,
  37.     KEY_DOWN            = 0x8001,
  38.     KEY_RIGHT            = 0x8002,
  39.     KEY_LEFT            = 0x8003,
  40.  
  41.     KEY_PGUP            = 0x8004,
  42.     KEY_PGDOWN        = 0x8005,
  43.  
  44.     KEY_HOME            = 0x8006,
  45.     KEY_END                = 0x8007,
  46.  
  47.     KEY_INSERT        = 0x8008,
  48.     KEY_DELETE        = 0x8009,
  49.     KEY_BACKSPACE    = 0x8010,
  50.  
  51.     KEY_ENTER            = 0x8011,
  52.     KEY_TAB                = 0x8012,
  53.  
  54.     KEY_F1                = 0x8013,
  55.     KEY_F2                = 0x8014,
  56.     KEY_F3                = 0x8015,
  57.     KEY_F4                = 0x8016,
  58.     KEY_F5                = 0x8017,
  59.     KEY_F6                = 0x8018,
  60.     KEY_F7                = 0x8019,
  61.     KEY_F8                = 0x8020,
  62.     KEY_F9                = 0x8021,
  63.     KEY_F10                = 0x8022,
  64.     KEY_F11                = 0x8023,
  65.     KEY_F12                = 0x8024,
  66.  
  67.     KEY_ESC                = 0x8025,
  68.     KEY_SPACE            = 0x8026,
  69.  
  70.     // for old IsKeyDown
  71.     KEY_MLEFT            = 0xF000,
  72.     KEY_MRIGHT        = 0xF001,
  73.  
  74.     KEY_SHIFT            = 0xF010,
  75.     KEY_CONTROL        = 0xF011,
  76.     KEY_ALT                = 0xF012
  77. };
  78.  
  79. enum
  80. {
  81.     BfBLACK            = 0,
  82.     BfWHITE            = 1,
  83.     BfLTGRAY        = 2,
  84.     BfLTRED            = 3,
  85.     BfLTGREEN        = 4,
  86.     BfLTBLUE        = 5,
  87.     BfLTYELLOW    = 6,
  88.     BfGRAY            = 7,
  89.     BfRED                = 8,
  90.     BfGREEN            = 9,
  91.     BfBLUE            = 10,
  92.     BfYELLOW        = 11,
  93.     BfDGRAY            = 12,
  94.     BfDRED            = 13,
  95.     BfDGREEN        = 14,
  96.     BfDBLUE            = 15,
  97.     BfDYELLOW        = 16,
  98.     BfDWHITE        = 17,
  99.     BfORANGE        = 18,
  100.     BfBROWN            = 19,
  101.     BfPURPLE        = 20
  102. };
  103.  
  104. enum
  105. {
  106.     // bitmap modes
  107.     BMP_NORMAL                       = 0,
  108.     BMP_NORMALSCALED             = 1,
  109.     BMP_DARKEN                   = 2,
  110.     BMP_EMBOSSED                  = 3,
  111.     BMP_ALLOWALPHA                = 256, // bitmask
  112.  
  113.     COLOR_BG                            = 1000,
  114.     COLOR_BGEDIT                    = 1001,
  115.     COLOR_BGFOCUS                    = 1002,
  116.     COLOR_TEXT                        = 1003,
  117.     COLOR_TEXTFOCUS                = 1004,
  118.     COLOR_EDGELT                    = 1005,    // bright border
  119.     COLOR_EDGEWH                    = 1006,    // brightest border
  120.     COLOR_EDGEDK                    = 1007,    // dark border
  121.     COLOR_EDGEBL                    = 1008,    // darkest border
  122.     COLOR_DBARFG1                    = 1009,    // dialog bar
  123.     COLOR_DBARBG1                    = 1010,    // dialog bar
  124.     COLOR_DBARFG2                    = 1011,    // dialog bar
  125.     COLOR_DBARBG2                    = 1012,    // dialog bar
  126.     COLOR_BGGADGET                = 1013,    // gadget background color
  127.  
  128.     COLOR_BGSELECTEDTEXT     = 1014,    // selected text in gadgets
  129.     COLOR_FGSELECTEDTEXT     = 1015,    // selected text in gadgets
  130.  
  131.     COLOR_TIMELINE                = 1016,    // Timeline
  132.  
  133.     COLOR_XOR                            = 998,  // for XOR lines
  134.     COLOR_TRANS                        = 999,  // transparent background for text
  135.  
  136.     oCOLOR_BG                            = 11000,
  137.     oCOLOR_BGEDIT                    = 11001,
  138.     oCOLOR_BGFOCUS                = 11002,
  139.     oCOLOR_TEXT                        = 11003,
  140.     oCOLOR_TEXTFOCUS            = 11004,
  141.     oCOLOR_EDGELT                    = 11005, // bright border
  142.     oCOLOR_EDGEWH                    = 11006, // brightest border
  143.     oCOLOR_EDGEDK                    = 11007, // dark border
  144.     oCOLOR_EDGEBL                    = 11008, // darkest border
  145.     oCOLOR_DBARFG1                = 11009, // dialog bar
  146.     oCOLOR_DBARBG1                = 11010, // dialog bar
  147.     oCOLOR_DBARFG2                = 11011, // dialog bar
  148.     oCOLOR_DBARBG2                = 11012, // dialog bar
  149.     oCOLOR_BGGADGET                = 11013, // gadget background color
  150.     oCOLOR_BGSELECTEDTEXT = 11014, // selected text in gadgets
  151.     oCOLOR_FGSELECTEDTEXT = 11015, // selected text in gadgets
  152.  
  153.     oCOLOR_TIMELINE                = 11016, // Timeline
  154.  
  155.     COLOR_DUMMY
  156. };
  157.  
  158. // flags for layout - bf_flags
  159. enum
  160. {
  161.     BFV_GRIDGROUP_EQUALCOLS                 = 1,        // each column has the same width
  162.     BFV_GRIDGROUP_EQUALROWS                 = 2,        // each row has the same height
  163.     BFV_CMD_EQUALCOLUMNS                        = 2048, // same column width
  164.  
  165.     BFV_DIALOG_REMOVEABLE                   = 4,        // dialog is removeable
  166.     BFV_DIALOG_BAR_VERT                     = 8,        // dialog has a vertical dialogbar
  167.     BFV_DIALOG_NOBUTTONS                        = 16,        // no button bar
  168.  
  169.     //BFV_GRIDGROUP_LAYOUTER                = 256,    // mark a layouting frame
  170.     BFV_LAYOUTGROUP_PALETTEOUTLINES = 512,
  171.     BFV_IGNORE_FOCUS                = 1024,
  172.  
  173.     BFV_TABGROUP_RELOADDIALOG       = 2048, // hack
  174.     BFV_LAYOUTGROUP_NODROP                    = 4096,
  175.  
  176.     BFV_
  177. };
  178.  
  179. // command resource object
  180. enum 
  181. {
  182.     RESOURCE_COMMAND        = 'rcmd',    // GetCResource();
  183.     RESOURCE_MENU                = 'rmnu',    // GetCResource();
  184.     RESOURCE_DIALOG            = 'rdlg',    // GetCResource();
  185.     RESOURCE_ICON                = 'ricn',    // GetCResource();
  186.  
  187.     RESCMD_TITLE                = 'titl',
  188.     RESCMD_HELP                    = 'help',
  189.     RESCMD_ICONPOOL            = 'pool',
  190.     RESCMD_ICONNUM            = 'inum',
  191.     RESCMD_DESTINATION    = 'dest',
  192.     RESCMD_VERSIONINFO    = 'vers',
  193.         CMD_XL                        = 1,
  194.         CMD_GO                        = 2,
  195.     RESCMD_SHORTQUAL        = 'sqal',
  196.     RESCMD_SHORTKEY            = 'skey',
  197.     RESCMD_SHORTQUAL2        = 'sql2',
  198.     RESCMD_SHORTKEY2        = 'sky2',
  199.     RESCMD_SHORTSTRING    = 'sstr',
  200.  
  201.     // private
  202.     RESCMD_FLAGS                = 'flag',    // LONG
  203.     RESCMD_VALUE                = 'valu', // LONG
  204.  
  205.     RESCMD_LASTUPDATE        = 'updt', // LONG
  206.     RESCMD_SUB                    = 'subc'  // subcommand container
  207. };
  208.  
  209. // menu resource object
  210. enum 
  211. {
  212.     MENURESOURCE_SUBMENU        = 1,
  213.     MENURESOURCE_SEPERATOR    = 2,
  214.     MENURESOURCE_COMMAND        = 3,
  215.     MENURESOURCE_SUBTITLE        = 4,
  216.     MENURESOURCE_STRING            = 5
  217. };
  218.  
  219. enum
  220. {
  221.     ICONPOOL_FILENAME        = 'name',
  222.     ICONPOOL_ICON                = 'icon',
  223.         ICON_ID                        = 'idid',
  224.         ICON_X                        = 'xpos',
  225.         ICON_Y                        = 'ypos',
  226.         ICON_W                        = 'wdth',
  227.         ICON_H                        = 'heig'
  228. };
  229.  
  230. // border types
  231. enum
  232. {
  233.     BORDER_NONE                = 0,
  234.     BORDER_THIN_IN        = 1,
  235.     BORDER_THIN_OUT        = 2,
  236.     BORDER_IN                    = 3,
  237.     BORDER_OUT                = 4,
  238.     BORDER_GROUP_IN        = 5,
  239.     BORDER_GROUP_OUT    = 6,
  240.     BORDER_OUT2                = 7,
  241.     BORDER_OUT3                = 8,
  242.     BORDER_BLACK            = 9,
  243.     BORDER_ACTIVE_1        = 10,
  244.     BORDER_ACTIVE_2        = 11,
  245.     BORDER_GROUP_TOP    = 12,
  246.  
  247.     BORDER_MASK                = 0x7FFFFFFF,
  248.     BORDER_WITH_TITLE    = 0x80000000
  249. };
  250.  
  251. // dialog resource object
  252. enum 
  253. {
  254.     DR_NAME                                                        = 'name',
  255.     DR_CHILD                                                    = 'chld',
  256.     DR_ID                                                            = 'rsid',
  257.         DRTYPE_DIALOG                                        = 'rdlg',
  258.     
  259.         DRTYPE_SCROLLGROUP                            = 'sgrp',
  260.             DR_SCROLL_V                                        = 'scrv',
  261.             DR_SCROLL_H                                        = 'scrh',
  262.             DR_SCROLL_BORDERIN                        = 'scrb',
  263.             DR_SCROLL_STATUSBAR               = 'scrs',
  264.  
  265.         DRTYPE_TAB                                            = 'dtab',
  266.             DR_TAB_SELECTBY                                = 'tbsl',
  267.                 TAB_TABS                                        = 0,
  268.                 TAB_NOSELECT                                = 1,
  269.                 TAB_CYCLE                                        = 2,
  270.                 TAB_RADIO                                        = 3,
  271.  
  272.         DRTYPE_RADIOGROUP                                = 'rgrp', // radio group
  273.  
  274.         DRTYPE_DLGGROUP                                    = 'dlgg',
  275.             DR_DLGGROUP_OK                                = 1,
  276.             DR_DLGGROUP_CANCEL                        = 2,
  277.             DR_DLGGROUP_HELP                            = 4,
  278.  
  279.         DRTYPE_GROUP                                        = 'grup',
  280.             //DR_CHILD
  281.             //DR_NAME
  282.             //DR_ID
  283.             DR_COLUMNS                                        = 'cols', // number of columns, either DR_COLUMNS or DR_ROWS
  284.             DR_ROWS                                                = 'rows', // number of rows
  285.             DR_EQUALROWS                                    = 'eqrw',
  286.             DR_EQUALCOLS                                    = 'eqcl',
  287.             DR_BORDERSTYLE                                = 'bdst', // type of the border
  288.                 //BORDER_STYLES ...
  289.  
  290.             DR_BORDERSIZE_L                                = 'bszl', // space around the group
  291.             DR_BORDERSIZE_R                                = 'bszr', // space around the group
  292.             DR_BORDERSIZE_T                                = 'bszt', // space around the group
  293.             DR_BORDERSIZE_B                                = 'bszb', // space around the group
  294.             DR_SPACE_X                                        = 'spcx', // space between elements
  295.             DR_SPACE_Y                                        = 'spcy', // space between elements
  296.             DR_ALIGNMENT                                    = 'algn', // alignment
  297.                 // binfo->pos baseframe vertical and horizontal orientation
  298.                 BFV_CENTER                                    = 0,
  299.                 BFV_TOP                                            = 1, // (1<<0),
  300.                 BFV_BOTTOM                                    = 2, // (1<<1),
  301.                 BFV_FIT                                            = 3, // (BFV_BOTTOM|BFV_TOP),
  302.                 BFV_SCALE                                        = 4, // (1<<2),
  303.                 BFV_SCALEFIT                                = 7, // (BFV_SCALE|BFV_FIT),
  304.                     BFV_MASK                                    = 3,
  305.  
  306.                 BFH_CENTER                                    = 0,
  307.                 BFH_LEFT                                        = 8,  // 1<<3
  308.                 BFH_RIGHT                                        = 16, // 1<<4
  309.                 BFH_FIT                                            = 24,
  310.                 BFH_SCALE                                        = 32, // 1<<5
  311.                 BFH_SCALEFIT                                = 56,
  312.                     BFH_MASK                                    = 24,
  313.  
  314.         DRTYPE_WINDOWPIN                                = 'wpin',
  315.         DRTYPE_SEPARATOR                                = 'wsep',
  316.  
  317.         DRTYPE_OLDWIN                                        = 'oldw',
  318.             DROLDWIN_SIZE_W                                = 'sizw',    // default dialog size (w,h) in dlus
  319.             DROLDWIN_SIZE_H                                = 'sizh',    // default dialog size (w,h) in dlus
  320.  
  321.             DROLDWIN_EDITTEXT                            = 'edit',    
  322.             DROLDWIN_MULTILINETEXT                = 'edmt',    
  323.                 DR_MULTILINE_MONOSPACED            = 1,
  324.                 DR_MULTILINE_SYNTAXCOLOR        = 2,
  325.                 DR_MULTILINE_STATUSBAR        = 4,
  326.  
  327.             DROLDWIN_EDITNUMBERARROWS         = 'numa',
  328.             DROLDWIN_EDITNUMBER                        = 'numb',
  329.             DROLDWIN_COMBOBOX                            = 'cmbo',
  330.             DROLDWIN_POPUPBUTTON                    = 'popb',
  331.             DROLDWIN_CHECKBOX                            = 'chck',
  332.             DROLDWIN_STATICTEXT                        = 'text',
  333.             DROLDWIN_SLIDER                                = 'sldr',
  334.             DROLDWIN_SLIDERNUM                        = 'slnm',
  335.             DROLDWIN_GROUPBOX                            = 'ogrp',
  336.             DROLDWIN_BUTTON                                = 'bttn',
  337.             DROLDWIN_OWNERDRAW                        = 'ownr',
  338.             DROLDWIN_COLORFIELD                        = 'cfld',
  339.                 DR_COLORFIELD_NO_BRIGHTNESS = 1,
  340.                 DR_COLORFIELD_NO_COLOR            = 2,
  341.  
  342.             DROLDWIN_RADIOGADGET                    = 'rgad',
  343.             DROLDWIN_SPECIALRADIO                    = 'sbtn',
  344.                 // for all gadget types
  345.                 // DR_ID                                        = 'rsid',
  346.                 // DR_CHILD                                    = 'chld',
  347.                 // DR_NAME                                    = 'name',
  348.                 DROLDWIN_POS_X                            = 'posx',    // position (x,y,w,h) in dlus for the object
  349.                 DROLDWIN_POS_Y                            = 'posy',    // position (x,y,w,h) in dlus for the object
  350.                 DROLDWIN_POS_W                            = 'posw',    // position (x,y,w,h) in dlus for the object
  351.                 DROLDWIN_POS_H                            = 'posh',    // position (x,y,w,h) in dlus for the object
  352.             DROLDWIN_ARROWBUTTON          = 'arrg',
  353.                 DR_ARROWTYPE                                = 'arrt',
  354.                     ARROW_LEFT                                 = 1,
  355.                     ARROW_RIGHT                                = 2,
  356.                     ARROW_UP                                     = 3,
  357.                     ARROW_DOWN                                 = 4,
  358.                     ARROW_SMALL_LEFT                     = 5,
  359.                     ARROW_SMALL_RIGHT                    = 6,
  360.                     ARROW_SMALL_UP                         = 7,
  361.                     ARROW_SMALL_DOWN                     = 8,
  362.  
  363.     DIALOGRESOURCE_
  364. };
  365.  
  366. // flags for command gadget
  367. enum
  368. {
  369.     CMD_POPUP_RIGHT        = 1,
  370.     CMD_POPUP_BELOW        = 2,
  371.     CMD_PIC                      = 4,
  372.     CMD_TOGGLE                = 8,        // can be toggled
  373.     CMD_TEXT                    = 16,        // text
  374.     CMD_SHORTCUT            = 32,        // shortcut
  375.     CMD_ARROW                    = 64,        // arrows for menu
  376.     CMD_VERT                    = 128,    // vertical alignment of text and icon
  377.     CMD_BUTTONLIKE        = 256,    // button (TRUE) or menu entry (FALSE)
  378.     CMD_MENU                    = 512,    // menu entry (is a menu entry and no command entry)
  379.     CMD_CYCLE                    = 1024,    // stays toggled
  380.     CMD_EDITPALETTE        = 4096, // command manager flag (button shows up in palette manager)
  381.     CMD_SMALLICONS        = 8192, // small icons (text height)
  382.  
  383.     CMD_VALUE                    = 0x3FFFFFFF,
  384.     CMD_ENABLED                = 0x40000000, //2147483648,
  385.  
  386.     CMD_
  387. };
  388.  
  389. // flags for popups
  390. enum
  391. {
  392.     POPUP_ABOVE                    = 1,
  393.     POPUP_BELOW                    = 2,
  394.     POPUP_CENTERVERT        = 3,
  395.  
  396.     POPUP_LEFT                    = 4,
  397.     POPUP_RIGHT                    = 8,
  398.     POPUP_CENTERHORIZ        = 12,
  399.  
  400.     POPUP_ADJUSTWIDTH        = 16,
  401.     POPUP_ADJUSTHEIGHT    = 32,
  402.  
  403.     POPUP_
  404. };
  405.  
  406. // flags for coffee manager window
  407. enum
  408. {
  409.     SCROLLGROUP_VERT     = 4,
  410.     SCROLLGROUP_HORIZ    = 8,
  411.     SCROLLGROUP_NOBLIT   = 16,
  412.     SCROLLGROUP_LEFT       = 32,
  413.     SCROLLGROUP_BORDERIN = 64,
  414.     SCROLLGROUP_STATUSBAR = 128
  415. };
  416.  
  417. // modes for MouseSelectAreas function
  418. enum
  419. {
  420.     MOUSESELECT_RECTANGLE = 1,
  421.     MOUSESELECT_POLYGON   = 2,
  422.     MOUSESELECT_FREE      = 3
  423. };
  424.  
  425. enum
  426. {
  427.     MANAGER_NONE,
  428.  
  429.     MANAGER_SCROLLER_HORIZ,
  430.     MANAGER_SCROLLER_VERT,
  431.     MANAGER_CLOSEBUTTON,
  432.     MANAGER_SIZEABLE,
  433.     MANAGER_TITLE,
  434.     MANAGER_ID,
  435.     MANAGER_MENUID,
  436.     MANAGER_NOBLITBIT,
  437.     MANAGER_WANTOWNSTATUSBAR,
  438.     MANAGER_SPECIALUNLOCKMOUSEDOWN,
  439.  
  440.     MANAGER_DUMMY
  441. };
  442.  
  443. // for color chooser
  444. enum
  445. {
  446.     NO_BRIGHTNESS = 1,    
  447.     NO_COLOR      = 2,
  448.     DUMMY_
  449. };
  450.  
  451. // focus definitions of COFFEE frames
  452. enum 
  453. {
  454.     FOCUS_OFF   = 0,    // has no focus
  455.     FOCUS_ON    = 1,    // has focus and window is active
  456.     FOCUS_INACT = 2,    // has focus but window is inactive
  457.     FOCUS_
  458. };
  459.  
  460. enum
  461. {
  462.     BFM_INIT                            = 'bINI',
  463.  
  464.     BFM_TIMER_MESSAGE       = 10020,
  465.     
  466.     BFM_CALCSIZE                    = 'bCAS',
  467.  
  468.     BFM_CHECKCLOSE                = 'chkc',    // message to physical window when user closes window
  469.     BFM_ASKCLOSE                    = 'askc',    // send within dialog to check if dialog can be closed
  470.     BFM_DESTROY                        = 'dsty',    // force closing
  471.  
  472.     BFM_CLOSEWINDOW                = 'clos',    // parent message for window closing
  473.  
  474.     BFM_ASK_TABSWITCH            = 'stab', // ask for tab switching 
  475.  
  476.     BFM_ASK_VISIBLE                = 'avis', // parent message to ask for visiblility
  477.     BFM_VISIBLE_ON                = 'visT', // message about visibility change
  478.     BFM_VISIBLE_OFF                = 'visF', // message about visibility change
  479.  
  480.     BFM_PARENT_TITLECHNG    = 'pren', // title change parent notify 
  481.     BFM_RENAMEWINDOW            = 'wren',    // rename window message
  482.  
  483.     BFM_GETACTIVETABTITLE = 'tact', // ask for active tab title
  484.  
  485.     BFM_GETCURSORINFO            = 'cinf',    // ask for mousepointdata (returns container)
  486.         // BFM_DRAG_SCREENX - screenx
  487.         // BFM_DRAG_SCREENY - screeny
  488.         // resultcontainer
  489.         RESULT_CURSOR                = 1,            // cursor type
  490.         RESULT_BUBBLEHELP        = 2,            // bubble help text
  491.  
  492.     BFM_GETINFO                        = 'bInf',
  493.  
  494.     BFM_DRAW                            = 'bDRA',
  495.         BFM_DRAW_LEFT                = 1,            // only redraw this area
  496.         BFM_DRAW_TOP                = 2,            // only redraw this area
  497.         BFM_DRAW_RIGHT            = 3,            // only redraw this area
  498.         BFM_DRAW_BOTTOM            = 4,            // only redraw this area
  499.         BFM_DRAW_HASRECT        = 5,            // flag for a existing redraw rectangle
  500.         BFM_DRAW_OGL                = 6,            // flag for a existing redraw rectangle
  501.  
  502.     BFM_GET_SHOW_AREA            = 'sget',
  503.     BFM_SHOW_AREA                    = 'sare', // scrolls the given rectangle so that it becomes visible (ScrollArea)
  504.         //BFM_DRAW_LEFT
  505.         //BFM_DRAW_TOP
  506.         //BFM_DRAW_RIGHT
  507.         //BFM_DRAW_BOTTOM
  508.  
  509.     BFM_TITLECHNG                    = 'bTIC',
  510.  
  511.     BFM_ENABLE                        = 'bEna',    // enables the COFFEE frame
  512.     BFM_DISABLE                        = 'bDis',    // disables the COFFEE frame
  513.  
  514.     BFM_MINCHNG                        = 'bMIC',
  515.  
  516.     BFM_MAXCHNG                        = 'bMAC',
  517.  
  518.     BFM_VALUECHNG                    = 'bVAC',
  519.  
  520.     BFM_IDCHNG                        = 'bIDC',
  521.  
  522.     BFM_GOTFOCUS                    = 'bGFC',    // item got the focus
  523.     BFM_LOSTFOCUS                    = 'bLFC',    // item lost the focus
  524.     
  525.     BFM_SETFOCUS                    = 'bSFC',    // internal message
  526.     BFM_SETFIRSTFOCUS            = 'bSFF',    // help message focus-keyboard control
  527.  
  528.     BFM_MOVEFOCUSNEXT            = 'bFNX',    // help message focus-keyboard control
  529.     BFM_MOVEFOCUSPREV            = 'bFPR',    // help message focus-keyboard control
  530.  
  531.     BFM_SETLASTFOCUS            = 'bSLF',    // help message focus-keyboard control
  532.     
  533.     BFM_SHOW_FRAME                = 'sFrm', // brings frame to front, returns TRUE if found
  534.         BFM_SHOW_ID                    = 1,            // show this id
  535.         BFM_MANAGER_ID            = 2,            // show this id
  536.  
  537.     BFM_GET_MANAGERID            = 'gMan',    // retrieves the manager ID
  538.  
  539.     BFM_FIND_MANAGERID        = 'fMan',    // search the manager for this manager ID
  540.         BFM_MANAGERID                = 1,            // manager ID to find
  541.  
  542.     BFM_CHILD_REMOVED            = 'bRem',
  543.         BFM_CHILD_ID                = 1,
  544.  
  545.     BFM_ACTIVATE_WINDOW        = 'wact',
  546.  
  547.     BFM_INPUT                                            = 'bIPN',
  548.         BFM_INPUT_QUALIFIER                    = 'ipqa',    // qualifier
  549.         BFM_INPUT_DEVICE                        = 'ipdv', // device
  550.             BFM_INPUT_MOUSE                        = 'mous', // mouse
  551.             BFM_INPUT_KEYBOARD                = 'keyb', // mouse
  552.                 BFM_INPUT_ASC                        = 'kasc', //
  553.  
  554.         BFM_INPUT_CHANNEL                        = 'ipca', // channel
  555.                 BFM_INPUT_MOUSELEFT            = 1,
  556.                 BFM_INPUT_MOUSERIGHT        = 2,
  557.                 BFM_INPUT_MOUSEMIDDLE        = 3,
  558.                 BFM_INPUT_MOUSEWHEEL        = 100,        // windows mouse wheel message
  559.                 BFM_INPUT_MOUSEMOVE            = 101,        // windows mouse wheel message
  560.             BFM_INPUT_VALUE                        = 'ipva',    // LONG: channel value (e.g. pressure)
  561.             BFM_INPUT_VALUE_REAL            = 'ipvA',    // REAL: Value des Channels (z.B Pressure)
  562.             BFM_INPUT_X                                = 'ipvx',    // channel x value
  563.             BFM_INPUT_Y                                = 'ipvy',    // channel y value
  564.             BFM_INPUT_Z                                = 'ipvz',    // channel z value
  565.             BFM_INPUT_TILT                        = 'itlt',    // pen tilt
  566.             BFM_INPUT_ROTATION                = 'irot',    // pen rotation
  567.             BFM_INPUT_FINGERWHEEL            = 'ifng',    // finger wheel
  568.  
  569.         BFM_INPUT_DOUBLECLICK             = 'ipdb', // double click (bool)
  570.         INPUT_DBLCLK                                = 0x8000,
  571.  
  572.     BFM_SIZED                                            = 'bISI',
  573.  
  574.     BFM_ACTION                                        = 'bACT',
  575.         BFM_ACTION_ID                                = 'meid',
  576.         BFM_ACTION_VALUE                        = 'meva',
  577.         BFM_ACTION_INDRAG                        = 'medr',    // slider in dragging mode (unfinished) (bool)
  578.         BFM_ACTION_STRCHG                        = 'mest',    // string in textfield changed (bool)
  579.         BFM_ACTION_VALCHG                        = 'vchg',    // NumberEdit/SliderChg (bool)
  580.  
  581.     BFM_ACTIVE_CHG                                = 'bACG',    // activation changed
  582.         BFM_ACTIVE                                    = 'actv',    // flag, if window is active
  583.  
  584.     BFM_DRAGSTART                                    = 10001,
  585.     BFM_DRAGRECEIVE                                = 10003,
  586.     BFM_DRAGEND                                        = 10004,
  587.     BFM_DRAGAUTOSCROLL                        = 10005,
  588.         BFM_DRAG_TYPE                                = 1,
  589.  
  590.             DRAGTYPE_FILES                        = 1,            // data pointer is a string with filename
  591.             DRAGTYPE_ICON                            = 4,            //
  592.             DRAGTYPE_MANAGER                    = 5,            // destination drag for COFFEE manager
  593.             DRAGTYPE_COMMAND                    = 6,            // destination drag for command
  594.             DRAGTYPE_CMDPALETTE                = 7,
  595.  
  596.             DRAGTYPE_OBJECT                        = 100,
  597.             DRAGTYPE_TAG                            = 101,
  598.             DRAGTYPE_OTRENN                        = 102,
  599.             DRAGTYPE_ATRENN                        = 103,
  600.             DRAGTYPE_ANAME                        = 104,
  601.             DRAGTYPE_CTRENN                        = 105,
  602.             DRAGTYPE_HV                         = 106,
  603.             DRAGTYPE_TIMEA                        = 107,
  604.             DRAGTYPE_TIMEC                        = 108,
  605.             DRAGTYPE_TIMEU                        = 109,
  606.             DRAGTYPE_MCURVE                        = 110,
  607.             DRAGTYPE_U_MARKERX                = 111,
  608.             DRAGTYPE_U_MARKERY                = 112,
  609.  
  610.             DRAGTYPE_MATERIAL                    = 200,
  611.  
  612.             DRAGTYPE_KEY                            = 300,
  613.             DRAGTYPE_SEQ                            = 301,
  614.             DRAGTYPE_TRACK                        = 304,
  615.             DRAGTYPE_A_RKEYS                    = 305,
  616.  
  617.             DRAGTYPE_BROWSER_TEXTURE    = 400,
  618.             DRAGTYPE_BROWSER_SCENE    = 401,
  619.             DRAGTYPE_BROWSER_MATERIAL = 402,
  620.             DRAGTYPE_BROWSER_SOUND        = 403,
  621.             DRAGTYPE_BROWSER_FCV            = 404,
  622.             DRAGTYPE_BROWSER_COFFEE        = 405,
  623.  
  624.             DRAGTYPE_A_OBJECT           = 44000,
  625.             DRAGTYPE_A_TRACK            = 44001,
  626.             DRAGTYPE_A_SEQ              = 44002,
  627.             DRAGTYPE_A_SEQ_NEW          = 44005,
  628.             DRAGTYPE_A_KEY              = 44006,
  629.             DRAGTYPE_A_MARKER           = 44007,
  630.             DRAGTYPE_A_TIME             = 44008,
  631.             DRAGTYPE_A_SELECT_MIN       = 44010,
  632.             DRAGTYPE_A_SELECT_MAX       = 44011,
  633.             DRAGTYPE_A_LOOP_MIN         = 44013,
  634.             DRAGTYPE_A_LOOP_MAX         = 44014,
  635.             DRAGTYPE_A_TRENN1           = 44015,
  636.             DRAGTYPE_A_TRENN2           = 44016,
  637.             DRAGTYPE_A_RANGE_PS         = 44017,
  638.             DRAGTYPE_A_RANGE_PS_MIN     = 44018,
  639.             DRAGTYPE_A_RANGE_PS_MAX     = 44019,
  640.             DRAGTYPE_A_TIME_PS          = 44020,
  641.             DRAGTYPE_A_LINE                        = 45000,
  642.             DRAGTYPE_A_VDRAG                    = 45001,
  643.  
  644.         BFM_DRAG_DATA                                = 2,
  645.         BFM_DRAG_SCREENX                        = 3,
  646.         BFM_DRAG_SCREENY                        = 4,
  647.         BFM_DRAG_FINISHED                        = 5,
  648.         BFM_DRAG_PRIVATE                        = 6,
  649.         BFM_DRAG_LOST                                = 7,
  650.     
  651.         AUTOSCROLL_UP                                = 1,    // result of BFM_DRAGAUTOSCROLL
  652.         AUTOSCROLL_DOWN                            =    2,    // result of BFM_DRAGAUTOSCROLL
  653.         AUTOSCROLL_LEFT                            = 3,    // result of BFM_DRAGAUTOSCROLL
  654.         AUTOSCROLL_RIGHT                        =    4,    // result of BFM_DRAGAUTOSCROLL
  655.         AUTOSCROLL_OWNX                            =    5,    // only for timeline - hack
  656.         AUTOSCROLL_OWNY                            =    6,    // only for timeline - hack
  657.  
  658.     // Tilo changed
  659.     BFM_GETVALUE                                    = 'gVAL',    // get Value
  660.  
  661.     BFM_VALUEADD                                    = 'bVAD',
  662.     BFM_VALUESUB                                    = 'bVSB',
  663.  
  664.     BFM_INITVALUES                                = 'bVIN',
  665.  
  666.     BFM_ADJUSTSIZE                                = 'fADJ',    // message to adjust the object in the given range l.d.
  667.         BFM_ADJUSTSIZE_LEFT                    = 1,
  668.         BFM_ADJUSTSIZE_TOP                    = 2,
  669.         BFM_ADJUSTSIZE_WIDTH                = 3,
  670.         BFM_ADJUSTSIZE_HEIGHT                = 4,
  671.  
  672.     // parent messages
  673.     //    BFM_GETDISABLED                        = 'bDIS',    // ask if parent is disabled
  674.  
  675.     BFM_LAYOUT_CHANGED_INTERNAL = 'iLAY',
  676.     BFM_LAYOUT_CHANGED                        = 'fLAY',    // layout change message to parent 
  677.  
  678.     BFM_ISACTIVE                                    = 'iact', // to ask active view...
  679.  
  680.     BFM_SETSTATUSBAR                             = 'stat',
  681.         BFM_STATUSBAR_PROGRESSON        = 1,            // bool
  682.         BFM_STATUSBAR_TXT                        = 2,            // string
  683.         BFM_STATUSBAR_PROGRESS            = 3,            // real 0.0...1.0
  684.         BFM_STATUSBAR_PROGRESSSPIN    = 4,            // ...
  685.         BFM_STATUSBAR_HELP            = 5,
  686.  
  687.     BFM_MARKFOCUS                                    = 'bMFC',    // reverts focus message ... for internal use only
  688.  
  689.     BFM_CLEARFOCUS                                = 'bCFC',    // clear focus of all childs
  690.  
  691.     BFM_SETACTIVE                                    = 'bSAC',    // set active dialog bar
  692.         BFM_SETACTIVE_DATA                    = 'bSAC',    // set active dialog bar
  693.  
  694.     BFM_REMOVE_DIALOG                            = 'bREM', // remove the dialog from current group
  695.         BFM_DESTINATION_GROUP             = 'gdst', // destination for dialog, NULL means own window
  696.  
  697.     BFM_SCROLLAREA                                = 10010,     // scroll client area
  698.         BFM_SCROLLX                                    = 1,             // scroll direction
  699.         BFM_SCROLLY                                    = 2,             // scroll direction
  700.  
  701.     BFM_GETVISIBLE_XOFF                        = 10011,    // internal usage
  702.     BFM_GETVISIBLE_YOFF                        = 10012,    // internal usage
  703.     BFM_GETVISIBLE_WIDTH                    = 10013,    // internal usage
  704.     BFM_GETVISIBLE_HEIGHT                    = 10014,    // internal usage
  705.  
  706.     // scroller
  707.     SCR_VISIBLEOBJS                                = 'sVIS',    // visible scroll elements
  708.  
  709.     BFM_SETVIEWPORTORIGIN                 = 'cORG',
  710.         BFM_SETVIEWPORTORIGIN_X            = 1,
  711.         BFM_SETVIEWPORTORIGIN_Y            = 2,
  712.     BFM_SETVIEWPORTSIZE                        = 'cSIZ',
  713.  
  714.     BFM_MENU_SET                                    = 10000,
  715.         BFM_MENU_ON                                    = 1,
  716.         BFM_MENU_OFF                                = 2,
  717.         BFM_MENU_CHECK                            = 4,
  718.         BFM_MENU_UNCHECK                        = 8,
  719.  
  720.     BFM_DRAWUSERITEM                            = 'usrd',
  721.         BFM_DRAWUSERITEM_ID                    = 1,
  722.  
  723.     // C4D message
  724.     BFM_SYNC_MESSAGE                            = 'sync',
  725.     BFM_CORE_MESSAGE                            = 'MciM',
  726.         BFM_CORE_ID                                    = 'MciI',    // C4D message ID
  727.         BFM_CORE_UNIQUEID                        = 'Muid',    // time stamp
  728.         BFM_CORE_PAR1                                = 'Mci1',    // parameter 1
  729.         BFM_CORE_PAR2                                = 'Mci2',    // parameter 2
  730.         BFM_CORE_SPECIALCOREID             = 'scid', // special manager ID for sync message
  731.  
  732.     BFM_TESTONLY                                    = 'test', // do nothing
  733.     BFM_SPECIALLONG                                = 'splg', // special thing
  734.     BFM_SPECIALSTRING                            = 'spst', // special thing
  735.     BFM_SPECIALENABLE                            = 'spen',    // ....
  736.     BFM_SPECIALGETLONG                        = 'gtlg', // special thing
  737.     BFM_SPECIALGETSTRING                    = 'gtst', // special thing
  738.     BFM_SPECIALSETRANGE                        = 'srng', // special hack
  739.     BFM_SPECIALACTIVATE                        = 'sact', // special activate
  740.     BFM_SPECIALVECTOR                            = 'svec', // set vector
  741.     BFM_SPECIALGETVECTOR                    = 'gvec', // get vector
  742.  
  743.     BFM_SPECIALSETCONTAINER                = 'scnt', // special hack
  744.     BFM_SPECIALGETREAL                        = 'grel', // special hack
  745.     BFM_SPECIALSETREAL                        = 'srel', // special hack
  746.     BFM_SPECIALSETPOPUPMENU                = 'spop', // special container for popup button menudata
  747.  
  748.     BFM_COMMAND                                        = 'cmmd', // executed commando
  749.         BFM_CMD_ID                                    = 'cmdi',    // command ID
  750.         BFM_CMD_DEST                                = 'dest', // destination manager
  751.         BFM_CMD_FIRSTFOCUS                    = 'focu', // TRUE, if the message is sent first time to the current manager, second try to the editor
  752.  
  753.     BFM_CORE_UPDATECOMMANDS                = 'updc', // forces update of all command buttons
  754.  
  755.     BF_INSERT_LAST                                = 2147483647,
  756.  
  757.     BFM_MENUFINDER                                = 'find',
  758.     BFM_SET_MSG_BITMASK                        = 'bitm',
  759.         BITMASK_CORE_MESSAGE                = 1,
  760.         BITMASK_SYNC_MESSAGE                = 2,
  761.  
  762.     BFM_SETMAINTITLE                             = 'mtit',
  763.  
  764.     BFM_GETVIEWPANELDATA                    = 'vpdt',
  765.  
  766.     BFM_GETVIEWPANEL_PRIVATEDATA    = 'vppd',
  767.     BFM_SETVIEWPANELLAYOUT                 = 'vpsl',
  768.         BFM_VPD_PANELID                            = 'vpid',
  769.         BFM_VPD_LAYOUTTYPE                    = 'vplt',
  770.         BFM_VPD_MAXIMIZED                        = 'vpmx',
  771.         BFM_VPD_PRIVATEDATA                   = 'vpdt',
  772.  
  773.     BFM_STORE_WEIGHTS                            = 'stwg',
  774.     BFM_MARKFORCELAYOUT                        = 'mkfl',
  775.  
  776.     BFM_REDRAW_EDITMODE                     = 'dwed',
  777.     BFM_RELOAD_MENUS                            = 'ldmn',
  778.     BFM_OPTIMIZE                                    = 'opti',
  779.     BFM_CORE_UPDATEACTIVECOMMANDS = 'upda',
  780.  
  781.     BFM_UPDATE_REGION                         = 'uprg',    // parent message -> update region
  782.     BFM_GUIPREFSCHANGED                        = 'gpch',    // message for changed gui prefs
  783.  
  784.     BFM_DUMMY                                         = 0             // dummy
  785. };
  786.  
  787. enum
  788. {
  789.     GUI_DIALOG_MINIMIZE = 90,
  790.     GUI_DIALOG_RELEASE  = 91,
  791.     GUI_DIALOG_CLOSE        = 92
  792. };
  793.  
  794. enum
  795. {
  796.     CFRAME_TEXTURES            = 1,
  797.     CFRAME_2DVIEW                = 2,
  798.     CFRAME_3DVIEW                = 3,
  799.  
  800.     CFRAME_DUMMY
  801. };
  802.  
  803. // paint tool brush dialog
  804. enum
  805. {
  806.     ID_PTBD_TOOL                    = 100,
  807.     ID_PTBD_DRAWMODE            = 101,
  808.     ID_PTBD_PRESSURE            = 102,
  809.     ID_PTBD_RELPRESSURE        = 103,
  810.     ID_PTBD_BRUSHSIZE            = 104,
  811.     ID_PTBD_BRUSHHARDNESS = 105,
  812.     ID_PTBD_BRUSHSITANCE  = 106,
  813.  
  814.     ID_USERFRAME1                    = 2000,
  815.     ID_USERFRAME2                    = 2001,
  816.     ID_USERFRAME3                    = 2002,
  817.     ID_USERFRAME4                    = 2003,
  818.     ID_USERFRAME5                    = 2004,
  819.     ID_USERFRAME6                    = 2005,
  820.  
  821.     ID_LAST_DUMMY    // dummy
  822. };
  823.